package com.haiqiu.tool.excel.utils;

import org.springframework.lang.Nullable;
/**
 * stringUtils工具
 * @author haiqiu
 */
public class HqStringUtils {
    public static boolean hasText(@Nullable String str) {
        return str != null && !str.isEmpty() && containsText(str);
    }


    private static boolean containsText(CharSequence str) {
        int strLen = str.length();

        for (int i = 0; i < strLen; ++i) {
            if (!Character.isWhitespace(str.charAt(i))) {
                return true;
            }
        }

        return false;
    }
}